package com.acme.superchat.service.command;

import com.acme.superchat.service.server.ServerConnector;

/**
 * @author Gregory Sobko
 */
public class HistCommand implements Command {
    @Override
    public String getCommandPrefix() {
        return "/hist";
    }

    @Override
    public void executeCommand(ServerConnector serverConnector, String command) {
        serverConnector.printHistory();
    }
}
